package com.cty;

import com.cty.Config.JavaConfig;
import com.cty.Test.A;
import com.cty.Test.B;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

//@SpringJUnitConfig(locations = {"classpath:"})//xml配置的
@SpringJUnitConfig(value = {JavaConfig.class})//指定配置类
public class test {
    @Autowired
    private A a;

    @Autowired
    private B b;

    @Test
    public void test_01() {
        System.out.println(a);
        System.out.println(b);
    }
}
